package com.lldpet.spring.cloud.demo.payment.service.event;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @desc：自定义事件 PaymentEvent
 * @author: guanliang.xue
 * @date: 2021/5/10 10:37
 * @version:
 * @since:
 */
public class PaymentEvent extends RemoteApplicationEvent {

    public PaymentEvent() {
    }

    /**
     *
     * @param source 发布的事件本身消息
     * @param originService 源服务，发出事件的服务  -- provider
     * @param destinationService 目标服务，接收事件的服务 -- customer
     */
    public PaymentEvent(Object source, String originService, String destinationService) {
        super(source, originService, destinationService);
    }

    public PaymentEvent(Object source, String originService) {
        super(source, originService);
    }
}
